package com.example.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import javax.validation.constraints.NotBlank;
import java.sql.Date;

@Data
@EqualsAndHashCode
@AllArgsConstructor
@NoArgsConstructor
@Component
@TableName("share")
public class Share {
    @TableId(value = "shareId", type = IdType.AUTO)
    private Integer shareId;
    private String shareType;
    @NotBlank(message = "内容不能为空")
    private String content;//朋友圈文案
    private Integer ispublic;
    private Integer userId;
    private Integer like;
    private Date shareTime;
}
